<div id="pd">
<div style="height: 420px;border-radius: 0px;" class="consume-panel">
    <div>
        <div style="margin-bottom: 25px;"><span style="font-size:14px; color:#00FFFF;">进程总览</span></div>
        <el-row>
            <el-col :span="3" class="processOverview" v-for="item in nodes" key="nodeName">
                <div class="numSty">
                    {{item.preArrive.length}}
                </div>
                <div class="dot-border" >
                    <div  class ="dot">
                    </div>
                </div>
                <div class="font-base-sty">
                       {{item.nodeName}}
                </div>
            </el-col>
        </el-row>


        <div style="position: relative;bottom: 45px;">
            <div style="height: 8px; width:100%; border:2px solid #37415d;background-color: #305367"></div>
        </div>
    </div>
<el-row>
    <el-col :span="3" v-for="node in nodes" class="overflow-sty">
        <div style="border: solid 1px #02cbff;margin: 10px;height: 35px;text-align: center;
        line-height:35px;font-size:12px;color:#02cbff;cursor:pointer;"
             v-for="item in node.preArrive"
             @click="checkFlight(item)"
        >
            {{item?item.flightInfo?item.flightInfo.flightNum:"":""}}
        </div>

    </el-col>
</el-row>

</div>

<div style="height: 400px" class="consume-panel">
    <el-row>
        <el-col :span="8">
            <div>
        <span style="font-size:14px;color:#00FFFF;">
            当前航班：{{currentFlight?currentFlight.flightInfo.flightNum:""}}
        </span>
            </div>
        </el-col>
        <el-col :span="16" style="text-align: right">
            <div>
                <el-form :inline="true" :model="checkFormInline" class="flight-form-inline">
                    <el-form-item label="航班号">
                        <el-select v-model="checkFormInline.flightNum" placeholder="请选择">
                            <el-option
                                    v-for="item in flightNums"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value"
                                    :disabled="item.disabled">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item >
                        <el-button type="primary" @click="check" plain>查询</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </el-col>
    </el-row>



    <div style="white-space: nowrap;overflow-x: auto;padding-top: 20px;position: relative;z-index: 22;width: 100%">
        <div style="    width: fit-content;min-width: 100%">
            <div style="position: relative;top: 113px;z-index: -1;width: 110%;">
                <div style="height: 0px; width:100%; border-top:1px solid #ff1f28;"></div>
            </div>
            <div class = "sty"  v-for="item in nodeData" style="vertical-align: top;">

                <div v-if="item.top" :class="item.top.nodeTime?'active':''">
                    <div>
                        {{item.top.nodeTime?item.top.nodeTime.substr(11,18):"-"}}
                    </div>
                    <div class="butn">
                        {{item.top.nodeName}}
                    </div>
                    <div style="height: fit-content;height: 60px;position: relative;text-align: center;">
                        <div class="unit">{{item.top.secUnit}}</div>
                        <div class="animate-line-container">
                            <div class="animate-line"></div>
                        </div>
                    </div>
                </div>

                <div v-else style="height: 98px"></div>
                <div class="dot1" :class="item.bottom&&item.top?item.top.nodeTime&&item.bottom.nodeTime?'active':'':item.top?item.top.nodeTime?'active':'':item.bottom?item.bottom.nodeTime?'active':'':''"></div>
                <div v-if="item.bottom" :class="item.bottom.nodeTime?'active':''" >
                    <div style="height: fit-content;height: 60px;position: relative;text-align: center;">
                        <div class="unit">{{item.bottom.secUnit}}</div>
                        <div class="animate-line-container">
                            <div class="animate-line"></div>
                        </div>
                    </div>
                    <div class="butn">
                        {{item.bottom.nodeName}}
                    </div>
                    <div>
                        {{item.bottom.nodeTime?item.bottom.nodeTime.substr(11,18):"-"}}
                    </div>
                </div>
                <div v-else style="height: 81px"></div>
            </div>
        </div>
    </div>
    <!--一条线-->
    <!--<div style="position: relative;bottom: 167px;">-->
        <!--<div style="height: 0px; width:100%; border-top:1px solid #ff1f28;"></div>-->
    <!--</div>-->
</div>
    <div class="consume-panel" >
        <div style="font-size:14px; color:#00FFFF;">进程日志</div>
        <div style="margin-top: 10px;">
            <el-table
                    :data="currentFlight.courseNodePos"
                    height="300"
                    border
                    style="width: 100%;">
                <el-table-column
                        prop="nodeName"
                        label="进程节点"
                        width="120">
                </el-table-column>
                <el-table-column
                        prop="secUnit"
                        label="保障单位"
                        width="120"
                >
                </el-table-column>
                <el-table-column
                        prop="nodeTime"
                        label="节点时间"
                        width="140"
                >
                </el-table-column>
                <el-table-column
                        prop="processDetails"
                        label="进程详情">
                    <template scope="scope">
                        <span>{{currentFlight.flightInfo.flightNum +" " +currentFlight.originating+"-"+currentFlight.destination+"于"+scope.row.nodeTime+" "+scope.row.nodeName    }}</span>
                    </template>
                </el-table-column>
                <el-table-column
                        prop="dataSources"
                        label="数据来源"
                        width="120"
                >
                </el-table-column>
                <el-table-column
                        prop="enterTime"
                        label="录入时间"
                        width="140">
                </el-table-column>
            </el-table>
        </div>
    </div>
    <messages :parentData="messageComponent" ref="messageComponent"></messages>
</div>